using UnityEngine;

public class ChatMessage : MonoBehaviour
{
	public UILabel messageLabel;

	public bool myMessage;

	public void InitMessage(string messageText, bool myMessage)
	{
		this.myMessage = myMessage;
		messageLabel.text = messageText;
		if (myMessage)
		{
			messageLabel.alignment = NGUIText.Alignment.Right;
			messageLabel.color = Color.blue;
		}
		else
		{
			messageLabel.alignment = NGUIText.Alignment.Left;
			messageLabel.color = Color.black;
		}
	}
}
